package Main;
import java.util.Scanner;
public class Main5 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int shu;
		while(sc.hasNext()){
		int a=sc.nextInt();
		if(a!=0){
		String A =Integer.toBinaryString(a);
		char[] B=A.toCharArray();
		shu=32-B.length;
		System.out.println(shu);
		}
		else
			{shu=32;
		System.out.println(shu);}
	}
	}
}
